package cn.itcast;

import cn.itcast.pojo.OrderSetting;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;
import java.util.Map;
@Repository
public interface OrdersettingDao {

    /**
     * @param orderDate
     * @return
     */
    Integer fingCountOrderDate(Date orderDate);

    void editNumberByDate(OrderSetting orderSetting);
    //更新已预约人数
    public void editReservationsByOrderDate(OrderSetting orderSetting);
    void add(OrderSetting orderSetting);
    //根据预约日期查询预约设置信息
    public OrderSetting findByOrderDate(Date orderDate);

    List<OrderSetting> getOrderSettingByMonth(Map map);
}
